home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / alib / amigalib / newlist.c < prev    next >
C/C++ Source or Header  |  1994-02-18  |  377b  |  26 lines

  1.  
  2. /*
  3.  *  NewList.C
  4.  *
  5.  */
  6.  
  7. #include <exec/types.h>
  8. #include <exec/lists.h>
  9. #ifdef INCLUDE_VERSION        /*    2.0 */
  10. #include <clib/alib_protos.h>
  11. #endif
  12.  
  13. #ifndef HYPER
  14. #define HYPER
  15. #endif
  16.  
  17. void
  18. HYPER ## NewList(list)
  19. struct List *list;
  20. {
  21.     list->lh_Head     = (struct Node *)&list->lh_Tail;
  22.     list->lh_Tail     = NULL;
  23.     list->lh_TailPred = (struct Node *)&list->lh_Head;
  24. }
  25.  
  26.